//获取token 并检测登录状态
var token   = localStorage.getItem('PhpGameSocketToken');
if(token===false || token==='' || token===null){
    window.location.href='login.html';
}
if(Date.parse(new Date())/1000-localStorage.getItem('PhpGameSocketTokenTime')>=60*60*2){
    localStorage.setItem('PhpGameSocketToken','');
    localStorage.setItem('PhpGameSocketTokenTime','');
    window.location.href='login.html';
}